package com.haixiaoke.saas.repository.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 创建订单DTO
 */
@Data
public class OrderDTO {
    @NotNull(message = "订单编号不能为空")
    private String cacheKey;      //订单id

    @NotNull(message = "入住时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date checkInTime;   //入住时间

    /** 退房时间 */
    @NotNull(message = "退房时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date checkOutTime;  //退房时间

    /** 是否购买保洁费(0:没购买；1:购买) */
    @NotNull(message = "是否购买保洁费不能为空")
    private Integer cleaningType;

    private String reservationPhone;

    @NotNull(message = "openId不能为空")
    private String openId;


    private String appId;       //微信appId
    private String mchId;       //商户号id
    private String mchApiKey;   //api密钥
    private String spbillCreateIp;//终端ip
    private String wxNotifyUrl;           //回调地址
    private String unifiedApi;           //调用地址


    private String updateBy;
}
